<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<link href="style.css" rel="stylesheet" type="text/css">
<link href="inside.css" rel="stylesheet" type="text/css">
<link href="member.css" rel="stylesheet" type="text/css">
<title>房屋出租刊登</title>
<meta name="keywords" content="<{$site_keywords}>" />
<meta name="description" content="<{$site_desc}>" />
<script type="text/JavaScript">
function check_form()
{
	if(document.form1.linkman.value =="")
	{
	   alert("請輸入姓名!");
	   return false;
	}
	
	var email = document.form1.email.value;
	var sReg = /[_a-zA-Z\d\-\.]+@[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+$/; 
	if ( ! sReg.test(email) || document.form1.email.value=="" ) 
	{ 
		alert("Email地阯錯誤！請重新輸入！"); 
		return false; 
	} 
	
	if(document.form1.tel.value==""&document.form1.mobile.value=="")
	{
	   alert("請輸入電話或手機!");
	   return false;
	}
	
	if(document.form1.address.value == "")
	{
	   alert("請輸入房子地址!");
	   return false;
	}
	
	if(document.form1.type.value == "")
	{
	   alert("請選擇類型!");
	   return false;
	}
	
	if(document.form1.area.value == "")
	{
	   alert("請輸入坪數!");
	   return false;
	}
	
	if(document.form1.title.value == "")
	{
	   alert("請輸入房屋名稱!");
	   return false;
	}
	
	if(document.form1.price.value == "")
	{
	   alert("請輸入租金!");
	   return false;
	}
	
	if(document.form1.Floor1.value == ""||document.form1.Floor2.value == "")
	{
	   alert("請輸入總樓層/出租樓!");
	   return false;
	}
	
	if(document.form1.age.value == "")
	{
	   alert("請輸屋齡!");
	   return false;
	}	
	
	if(document.form1.img.value == "")
	{
	   alert("請上傳首頁圖片!");
	   return false;
	}
	  
}
</script>
<script Language="JavaScript">
function selects() 
{		
	var pro = document.getElementById("pro").value;
	$.ajax(
		{
			type: "GET",
			url: "select.php",
			data: "id="+pro,
			success: function(msg)
			{ 
			 $("#test1").html(msg);;
			}
		}
	);
}
</script>
</head>

<body>
<div id="container">
<!--header-->
<{include file="./header.html"}>   
<!--header-->

<!--menu-->
<{include file="./menu.html"}> 
<!--menu-->

<div class="main2">

	<{include file="./left.html"}>  

    <div id="right">
      <div style="margin-top:11px;">
        
<DIV class=page_msgbox style="text-align:left" >
<TABLE cellSpacing=0 cellPadding=0 width=600 align=center border=0 style="line-height: 250%;">
   <form method="post" action="up_cz.php" name="form1" style="border:0" onSubmit="return check_form()" enctype="multipart/form-data">
 <{section name=key loop=$row start=0 max=1 step=1}> 	
  <TBODY>
  <TR>
    <TD><IMG height=50 
      src="images/title_msg_1sell.gif" 
      width=600> </TD></TR>
  <TR>
    <TD>
      <TABLE cellSpacing=8 cellPadding=0 width="100%" border=0>
        <TBODY>
        
        <TR>
          <TD width="6%">
            <DIV class=style2 align=right>*</DIV></TD>
          <TD class=page_txt_green width="19%"><STRONG>房屋編號：</STRONG> </TD>
          <TD width="75%">
          <INPUT class=txtbox maxLength=11 readonly size=15 name=linkman value="<{$row[key].num}>"></TD>
          </TR>        
        <TR>
          <TD width="6%">
            <DIV class=style2 align=right>*</DIV></TD>
          <TD class=page_txt_green width="19%"><STRONG>姓名：</STRONG> </TD>
          <TD width="75%">
          <INPUT class=txtbox maxLength=11 size=15 name=linkman value="<{$row[key].linkman}>"></TD>
          </TR>
        <TR>
          <TD vAlign=top>&nbsp;</TD>
          <TD class=page_txt_green width="19%"><STRONG>生日：</STRONG> </TD>
          <TD width="75%"><INPUT class=txtbox id=birth maxLength=11 size=15 name=birth value="<{$row[key].birth}>"></TD></TR>
        <TR>
          <TD width="6%">
            <DIV class=style2 align=right>*</DIV></TD>
          <TD class=page_txt_green width="19%"><STRONG>E-mail：</STRONG> </TD>
          <TD width="75%"><INPUT class=txtbox id=Email maxLength=50 size=28 
            name=email value="<{$row[key].email}>"> </TD></TR>
        <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD class=page_txt_green vAlign=top><STRONG>電話：</STRONG> </TD>
          <TD vAlign=top>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD height=23>住宅： <INPUT class=txtbox id=PhoneH maxLength=20 
                  name=tel value="<{$row[key].tel}>"> </TD></TR>
              <TR>
                <TD height=23>手機： <INPUT class=txtbox id=PhoneM maxLength=20 
                  name=mobile value="<{$row[key].mobile}>"> (擇一填寫) </TD></TR></TBODY></TABLE></TD></TR>
        <TR></TR>
        <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD class=page_txt_green vAlign=top><STRONG>地址：</STRONG></TD>
          <TD vAlign=top>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              
              <TR>
                <TD><input class=txtbox id=Email2 maxlength=100 size=50 
            name=address value="<{$row[key].address}>"></TD>
              </TR>
              <TR></TR></TBODY></TABLE></TD></TR>
              
         <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>標題：</STRONG></TD>
          <TD><INPUT class=txtbox id=area maxLength=50 size="50" name=title value="<{$row[key].title}>">             </TD></TR>  
		  

		               <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>分店：</STRONG> </TD>
          <TD>
          <select name="store">
          <{$fd}>
          </select>          
          
             </TD></TR>      
              
        <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>坪數：</STRONG> </TD>
          <TD><INPUT class=txtbox id=area maxLength=8 size=3 name=area value="<{$row[key].area}>"> 
            坪              </TD>
        </TR>
        <TR></TR>
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>類型：</STRONG> </TD>
          <TD><input class=txtbox   type="text" name=PhoneH22 readonly size="12" value="<{$row[key].type}>">
            <{$typexx}></TD>
        </TR>
        
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>大樓案名：</STRONG></TD>
          <TD><input class=txtbox   type="text" name=hou_name size="12" value="<{$row[key].hou_name}>"></TD>
        </TR>
        
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>電梯：</STRONG></TD>
          <TD><input class=txtbox   type="text" name=PhoneH22 readonly size="12" value="<{$row[key].elevator}>">
            <{$elevatorxx}></TD>
        </TR>
			
		<TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>傢俱：</STRONG> </TD>
          <TD>
          <textarea cols="50" name="xx" rows="5" disabled class=txtbox><{$row[key].furniture}></textarea>
          <br><{$furniturexx}></TD>
		</TR>
		<TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>家電：</STRONG> </TD>
          <TD>
          <textarea cols="50" name="xxx" rows="5" disabled class=txtbox><{$row[key].wiring}></textarea>
          <br>
            <{$wiringxx}></TD>
		</TR>
		<TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>來源：</STRONG> </TD>
          <TD><INPUT class=txtbox id=source maxLength=8 size=10 
            name=xxxx readonly value="<{$row[key].source}>">
            <{$source}></TD>
		</TR>
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>希望租價：</STRONG> </TD>
          <TD><INPUT class=txtbox id=price maxLength=8 size=10 
            name=price value="<{$row[key].price}>"> 
          元 </TD></TR>
		<TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>押金：</STRONG> </TD>
          <TD><INPUT class=txtbox id=deposit maxLength=8 size=10 
            name=deposit value="<{$row[key].deposit}>">
          元 </TD>
		</TR>
		
		<TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>優惠價：</STRONG> </TD>
          <TD><INPUT class=txtbox id=sale maxLength=8 size=10 
            name=sale value="<{$row[key].sale}>">
          元 </TD>
		</TR>	
        
        <TR>
          <TD vAlign=top>&nbsp; </TD>
          <TD class=page_txt_green><STRONG>租金包含：</STRONG> </TD>
          <TD>
           <textarea cols="50" name="wiring" rows="5" disabled class=txtbox><{$row[key].baohang}></textarea>
          <br><{$baohangxx}></TD>
        </TR>
			
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>樓層：</STRONG> </TD>
          <TD><INPUT class=txtbox id=CaseFloor size=10 
            name="floor" value="<{$row[key].floor}>"></TD></TR>
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>格局：</STRONG> </TD>
          <TD><INPUT class=txtbox id=Email3 maxLength=50 size=28 
            name=layout  value="<{$row[key].layout}>"></TD></TR>
        <TR>
          <TD vAlign=top><DIV align=right><SPAN class=style5><SPAN 
            class=style2>*</SPAN></SPAN></DIV></TD>
          <TD class=page_txt_green><STRONG>屋齡：</STRONG> </TD>
          <TD><INPUT class=txtbox id=age maxLength=3 size=3 
            name=age value="<{$row[key].age}>"> 年 </TD></TR>
            
            <TR>
          <TD vAlign=top><DIV align=right></DIV></TD>
          <TD class=page_txt_green><STRONG>公設：</STRONG> </TD>
          <TD><textarea cols="50" name="1212" rows="5" disabled class=txtbox><{$row[key].fire}></textarea>
            <br>
             <{$firexx}></TD>
            </TR>
            
            <TR>
          <TD vAlign=top><DIV align=right></DIV></TD>
          <TD class=page_txt_green><STRONG>保全：</STRONG></TD>
          <TD>
          <textarea cols="50" name="12" rows="5" disabled class=txtbox><{$row[key].baoquan}></textarea>
          <br>
            <{$baoquanxx}></TD>
            </TR>
            
            <TR>
          <TD vAlign=top><DIV align=right></DIV></TD>
          <TD class=page_txt_green><STRONG>座向：</STRONG></TD>
          <TD><INPUT class=txtbox id=age maxLength=20 size=20 
            name=111 value="<{$row[key].position}>">
            <{$position}></TD>
            </TR>
        <TR>
          <TD vAlign=top>&nbsp; </TD>
          <TD class=page_txt_green><STRONG>車位狀況：</STRONG> </TD>
          <TD>
            <INPUT class=txtbox id=age2 maxLength=3 size=3 
            name=age22 value="<{$row[key].unit}>">
            <INPUT id=Parking0 type=radio value=可租 
            name=unit  checked>
            <LABEL for=Parking0>可租</LABEL>
            <INPUT id=Parking1 
            type=radio value=有 name=unit>
            <LABEL for=Parking1>有</LABEL>
            <INPUT 
            id=Parking2 type=radio value=無 name=unit>
            <LABEL 
            for=Parking2>無</LABEL>
<BR></TD></TR>

	<TR>
          <TD vAlign=top>&nbsp; </TD>
          <TD class=page_txt_green valign="top"><STRONG>特色說明：</STRONG> </TD>
          <TD><{$edit}></TD>
          </TR>  
	
      <TR>
          <TD vAlign=top>&nbsp; </TD>
          <TD class=page_txt_green valign="top"><STRONG>GOOGLE地圖：</STRONG> </TD>
          <TD><textarea rows="10" name="map" cols="40"  class=txtbox><{$row[key].map}></textarea>&nbsp;<a href="http://maps.google.com.tw/" target="_blank">獲取地圖代碼</a><br>203 * 286&nbsp;(<a href="images/mmap.jpg" target="_blank">調用說明</a>)</TD>
          </TR>
          

        <TR>
          <TD vAlign=top colSpan=3>
            <DIV class=page_txt_line></DIV></TD></TR>
        <TR>
          <TD vAlign=top>
            <DIV align=right><SPAN class=style5></SPAN><SPAN 
            class=style2>*</SPAN></DIV></TD>
          <TD valign="top" class=page_txt_green><STRONG>上傳房子照片：</STRONG> </TD>
          <TD>
            <TABLE cellSpacing=1 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD><label><br>
				  <{$img}><input type="file" name="img" class=txtbox><br>
                  <{$img1}><input type="file" name="img1" class=txtbox><br>
                  <{$img2}><input type="file" name="img2" class=txtbox><br>
                  <{$img3}><input type="file" name="img3" class=txtbox><br>
                  <{$img4}><input type="file" name="img4" class=txtbox><br>
                  <{$img5}><input type="file" name="img5" class=txtbox><br>
                  <{$img6}><input type="file" name="img6" class=txtbox><br>
                  <{$img7}><input type="file" name="img7" class=txtbox><br>
                  <{$img8}><input type="file" name="img8" class=txtbox><br>
                  <{$img9}><input type="file" name="img9" class=txtbox><br>
                  <{$img10}><input type="file" name="img10" class=txtbox><br>
                  <{$img11}><input type="file" name="img11" class=txtbox><br>
                  <{$img12}><input type="file" name="img12" class=txtbox><br>
				  <!--<input type="submit" name="Submit" value="瀏覽">-->
                </label></TD>
              </TR></TBODY></TABLE></TD></TR>
       </TBODY></TABLE></TD></TR>
  <TR>
    <TD><IMG height=30 
      src="images/title_msg_foot.gif" 
      width=600> </TD></TR>
  <TR>
    <TD>&nbsp; </TD></TR>
  <TR>
    <TD height=70>
      <TABLE cellSpacing=10 cellPadding=0 width="1%" align=center border=0>
        <TBODY>
        <TR>
        
        <TD><input type="image" src="images/btn_send.gif" border="0">
          <input type="hidden" name="add" value="1">
           <input type="hidden" name="id" value="<{$row[key].id}>">
          </TD>
          
          <TD><a href="up_cz.php?id=<{$row[key].id}>"><img src="images/btn_delete.gif" border="0"></a></TD>
         
        </TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD>&nbsp; </TD></TR></TBODY>
     <{/section}>  
    </FORM></TABLE></DIV>
      </div>
    </div>


</div>

<!--foot-->
<{include file="./footer.html"}> 
<!--foot-->

</div>
</body>
</html>
